<template>
  <div>
    <h2>{{message}}</h2>
    <button v-on:click="btnClick">按钮</button>
    <p>{{message}}</p>
    <Cpn />
  </div>
</template>

<script>
import Cpn from "./Cpn.vue";
export default {
  name: "App",
  data() {
    return {
      message: "Taec"
    };
  },
  components: {
    Cpn
  },
  methods: {
    btnClick() {
      console.log("123");
    }
  }
};
</script>
<style>
button {
  width: 100px;
}
</style> 